package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 订阅人对象 slope_subscriber
 *
 * @author codegeek
 * @date 2020-02-04
 */
@Data
public class SlopeSubscriber extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long subscriberId;

    /**
     * 订阅人类别
     */
    @Excel(name = "订阅人类别")
    private Integer userType;

    /**
     * 订阅人用户名
     */
    @Excel(name = "订阅人用户名")
    private String subscribeUser;

    /**
     * 订阅人昵称
     */
    @Excel(name = "订阅人昵称")
    private String subscribeNickName;

    /**
     * 订阅人电话
     */
    @Excel(name = "订阅人电话")
    private String subscribePhone;

    /**
     * 订阅人邮箱
     */
    @Excel(name = "订阅人邮箱")
    private String subscribeEmail;

    /**
     * 订阅方式
     */
    @Excel(name = "订阅方式")
    private Integer subscribeMethod;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用")
    private String isValid;

    public SlopeSubscriber() {
    }

    public void setSubscribeUser(String subscribeUser) {
        this.subscribeUser = new ReplaceIllegalChar().replace(subscribeUser);
    }

    public void setSubscribeNickName(String subscribeNickName) {
        this.subscribeNickName = new ReplaceIllegalChar().replace(subscribeNickName);
    }

    public void setSubscribePhone(String subscribePhone) {
        this.subscribePhone = new ReplaceIllegalChar().replace(subscribePhone);
    }

    public void setSubscribeEmail(String subscribeEmail) {
        this.subscribeEmail = new ReplaceIllegalChar().replace(subscribeEmail);
    }

    public void setIsValid(String isValid) {
        this.isValid = new ReplaceIllegalChar().replace(isValid);
    }
}
